package com.xigua.domain;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author LiRongHua
 * @Title: ${file_name}
 * @Package ${package_name}
 * @Description: ${todo}
 * @date 2022/5/1711:34
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@HeadRowHeight(20)
@ContentRowHeight(20)
public class Student {
    /**
     * 学生姓名
     */
    @ExcelProperty(value = {"学生信息表","学生姓名"})
    @ColumnWidth(20)
    private String name;
    /**
     * 学生性别
     */
    @ExcelProperty(value = {"学生信息表","学生性别"})
    private String gender;

    /**
     * 学生出生日期
     */
    @ExcelProperty(value = {"学生信息表","学生生日"})
    @ColumnWidth(20)
    @DateTimeFormat("yyyy-MM-dd")
    private Date birthday;
    /**
     * id
     */
    @ExcelIgnore
    private String id;
}
